package xyz.zq.cloud.bs.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色自定义数据权限
 * </p>
 *
 * @author hzq
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role_data_permission")
public class RoleDataPermission extends Model<RoleDataPermission> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 部门id
     */
    private Integer deptId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
